package com.vhall.component.controller.order.facade;

import com.vhall.component.entity.order.vo.IncomeReqVo;
import com.vhall.component.entity.order.vo.OrderListReqVo;
import com.vhall.component.entity.order.vo.OrderPage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

/**
 * @author guoxin.wang
 * @date 2021/5/28 10:15
 */
@FeignClient(value = "OrderAdminFacade", path = "/v4/order/admin")
public interface OrderAdminFacade {

    /**
     * 订单列表
     *
     * @param reqVO
     * @return
     */
    @PostMapping(value = "/list")
    OrderPage list(@Validated OrderListReqVo reqVO);

    /**
     * 订单列表
     *
     * @param reqVO
     * @return
     */
    @PostMapping(value = "/income")
    Map<String, String> income(@Validated IncomeReqVo reqVO);


}
